package com.hsteach.dao.domain.meeting;

import com.hsteach.common.annotation.Excel;
import com.hsteach.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@ApiModel(description = "会议/会议纪要 附件")
@Data
public class MeetingFile extends BaseEntity {

    /** $column.columnComment */
    private Long id;

    /** 报修/维修填报信息id */
    @Excel(name = "关联id(会议id或者会议纪要id)")
    @ApiModelProperty(value = "关联id(会议id或者会议纪要id)" )
    private Long correlationId;

    /** 类型 1图片 2文件 */
    @Excel(name = "类型 1图片 2视频 3文件")
    @ApiModelProperty(value = "类型 1图片 2视频 3文件" )
    private Integer fileType;

    /** 访问url */
    @Excel(name = "访问url")
    @ApiModelProperty(value = "访问url" )
    private String url;

    /** 附件名 */
    @Excel(name = "附件名")
    @ApiModelProperty(value = "附件名" )
    private String fileName;

    @Excel(name = "附件类型")
    @ApiModelProperty(value = "附件类型" )
    private String fileExt;

    @Excel(name = "meeting 会议信息 ，summary 会议纪要")
    @ApiModelProperty(value = "meeting 会议信息 ，summary 会议纪要" )
    private String belongTo;

    /** 是否有效 1有效 0无效 */
    @Excel(name = "是否有效 1有效 0无效")
    @ApiModelProperty(value = "是否有效 1有效 0无效" )
    private Integer delStatus;

    @ApiModelProperty(value = "附件大小" )
    private Long fileSize;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("correlationId", getCorrelationId())
                .append("fileType", getFileType())
                .append("url", getUrl())
                .append("fileName", getFileName())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delStatus", getDelStatus())
                .toString();
    }
}
